package com.yqs.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Ye QS
 * @version 0.1
 * @className LogUtil
 * @description 日志工具类
 * @date 2024/8/6 11:41
 * @since jdk11
 */
public class LogUtil {
    public void log(String type,int num){
        System.out.println("日志："+currTime()+type+"手机"+num +"部");
    }
    public String currTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        return sdf.format(new Date());
    }
}
